package com.nlx.notes.module.mapper;

import com.nlx.notes.module.entity.UserUniqueCodeRel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author nlx
 * @since 2025-08-16
 */
public interface UserUniqueCodeRelMapper extends BaseMapper<UserUniqueCodeRel> {

    @Select(" select user_code from user_unique_code_rel where client_code = #{deviceCode} limit 1 ")
    String findUserCodeByClientCode(String deviceCode);
}
